package com.yanqu.road.entity.servercenter;

import java.util.HashMap;
import java.util.Map;

public class SystemConfigChannel {
    private int channelID;
    private Map<Integer, Map<String, ChannelSystemConfig>> channelSystemConfigMap = new HashMap<>();

    public SystemConfigChannel() {
    }

    public SystemConfigChannel(int channelID) {
        this.channelID = channelID;
    }

    public int getChannelID() {
        return channelID;
    }

    public void setChannelID(int channelID) {
        this.channelID = channelID;
    }

    public Map<Integer, Map<String, ChannelSystemConfig>> getChannelSystemConfigMap() {
        return channelSystemConfigMap;
    }

    public void setChannelSystemConfigMap(Map<Integer, Map<String, ChannelSystemConfig>> channelSystemConfigMap) {
        this.channelSystemConfigMap = channelSystemConfigMap;
    }

    public Map<String, ChannelSystemConfig> getSystemConfigMap(int systemId) {
        if (channelSystemConfigMap.containsKey(systemId)) {
            return channelSystemConfigMap.get(systemId);
        }
        return new HashMap<>();
    }
}
